<ion-view title="修改昵称" hide-back-button="true">
  <ion-nav-buttons side="left">
    <a class="button button-clear" ui-sref="mine.info">
      <i class="icon ion-chevron-left"></i>
    </a>
  </ion-nav-buttons>
  <ion-content>
    <div class="container">
      <div class="list list-inset no-padding">
        <label class="item item-input" style="border-radius: 10px; ">
          <input placeholder="请设置昵称" type="text" ng-model="name" value="{{user.name}}">
        </label>
      </div>

      <div style="height: 5px"></div>

      <button class="button button-block main-background" ng-click="setName()" style="border-radius: 10px" ng-disabled="!name || name == user.name || name.length < 4 || name.length > 20">
        确认
      </button>
      <div><span href="/#/reg" style="color: #5d5d5d">昵称为4-20位字符，支持汉字，字母，数字。</span></div>
    </div>
  </ion-content>
</ion-view>
